﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArraysLearn
{
    internal class MultidimensionalArrays
    {

        int[,] matrix = new int[3, 3];

        public void PrintMatrixArrays()
        {
            for (int i = 0; i < matrix.GetLength(0); i++)
            {
                for (int j = 0; j < matrix.GetLength(1); j++)
                {
                    matrix[i, j] = i * 3 + j;
                    Console.WriteLine(matrix[i, j]);
                }
            }

            Console.WriteLine(matrix);
        }
    }
}
